using System;
using System.Xml.Serialization;

namespace Top.Api.Domain
{
    /// <summary>
    /// TaoCodeDetail Data Structure.
    /// </summary>
    [Serializable]
    public class TaoCodeDetail : TopObject
    {
        /// <summary>
        /// 跳转URL，当type=9时才有值
        /// </summary>
        [XmlElement("direct_url")]
        public string DirectUrl { get; set; }

        /// <summary>
        /// 宝贝一级类目编号
        /// </summary>
        [XmlElement("item_category")]
        public string ItemCategory { get; set; }

        /// <summary>
        /// 宝贝数字ID
        /// </summary>
        [XmlElement("item_id")]
        public long ItemId { get; set; }

        /// <summary>
        /// 宝贝关键词
        /// </summary>
        [XmlElement("item_keywords")]
        public string ItemKeywords { get; set; }

        /// <summary>
        /// 宝贝状态，0,1：正常，-1：卖家删除，-2：卖家下架，-3：小二下架，-4：小二删除，-5：从未上架，-9：CC
        /// </summary>
        [XmlElement("item_status")]
        public long ItemStatus { get; set; }

        /// <summary>
        /// 淘代码是否过期，true：过期，false：未过期。
        /// </summary>
        [XmlElement("overdue")]
        public bool Overdue { get; set; }

        /// <summary>
        /// 店铺类目编号
        /// </summary>
        [XmlElement("shop_category")]
        public long ShopCategory { get; set; }

        /// <summary>
        /// 店铺编号
        /// </summary>
        [XmlElement("shop_id")]
        public long ShopId { get; set; }

        /// <summary>
        /// 淘代码状态，0：删除， 1：下线， 2：上线。
        /// </summary>
        [XmlElement("status")]
        public long Status { get; set; }

        /// <summary>
        /// 淘代码
        /// </summary>
        [XmlElement("tao_code")]
        public string TaoCode { get; set; }

        /// <summary>
        /// 淘代码类型，1：宝贝淘代码，2：店铺淘代码，9：其他淘代码。
        /// </summary>
        [XmlElement("type")]
        public long Type { get; set; }
    }
}
